require "migration_helpers"
class CreateDats < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :dats do |t|
      t.column :title, :string
      t.column :meta_id, :integer
      t.column :date_type_id, :integer
    end
    foreign_key(:dats, :meta_id, :metas)
    foreign_key(:dats, :date_type_id, :date_types)
  end

  def self.down
    drop_table :dats
  end
end
